package com.example.entity;

import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (SecKillSku)实体类
 *
 * @author 游家纨绔
 * @since 2023-08-30 12:30:00
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "second_kill_sku")
public class SecKillSku implements Serializable {
	@Serial
	private static final long serialVersionUID = 214081533784984471L;

	/**
	 * 主键
	 */
	@Id
	private Integer id;
	/**
	 * 关联spu的id
	 */
	private Integer spuId;
	/**
	 * 商品图片
	 */
	private String img;
	/**
	 * 商品价格
	 */
	private Double price;
	/**
	 * 秒杀价
	 */
	private Double priceSpike;
	/**
	 * 颜色
	 */
	private String color;
	/**
	 * 商品库存
	 */
	private Integer stock;
	/**
	 * 售卖数量
	 */
	private Integer sale;
	/**
	 * 乐观锁版本号
	 */
	private Integer version;
	/**
	 * 创建时间
	 */
	private Date gmtCreate;
	/**
	 * 修改时间
	 */
	private Date gmtModified;

}
